package com.szeldon.pj.jps.datastore;

public class BooleanObject extends SimpleObject {

    private boolean value;

    /**
     * 
     * @param sbaObjectId
     * @param name
     * @param value
     */
    public BooleanObject(SBAObjectId sbaObjectId, String name, boolean value) {
        super(sbaObjectId, name);
        this.value = value;
    }

    public boolean getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "<" + getSbaObjectId() + ", \"" + getName() + "\", " + value + ">";
    }

    public void setValue(boolean newValue) {
        this.value = newValue;
    }

}
